package com.workingpub.commons.jdbc.model;

import java.util.Calendar;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.workingpub.commons.domain.AutoIncrementDomainGeneral;
import com.workingpub.commons.domain.CreateTimeable;

/**
 * 测试MySQL自增长主键，保存并获取
 * 
 * @author Kevin(Ping)Tao
 *
 */
@Entity
@Table(name = "t_test_AutoIncrement")
public class AutoIdEntry extends AutoIncrementDomainGeneral implements CreateTimeable {

	private static final long serialVersionUID = -1937835596799547058L;

	@Column(name = "code")
	private String code;

	@Column(name = "create_time")
	private Calendar createTime;

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	@Override
	public Calendar getCreateTime() {
		return createTime;
	}

	@Override
	public void setCreateTime(Calendar createTime) {
		this.createTime = createTime;
	}

}
